<?php
/**
 * Created by PhpStorm.
 * User: yinnannan
 * Date: 16/1/19
 * Time: 上午5:15
 */
class china  {

    public function getProvince(){
        $china = DB::select('*')->from('syschina')->where("Pid","=","0")->execute()->as_array();
        return $china;
    }

    public function getCity($id){
        $china = DB::select('*')->from('syschina')->where("Pid","=",$id)->execute()->as_array();
        return $china;
    }
}